package com.ucode.model.cgms;

import com.ucode.tool.base.BaseTenantMode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 佣金流水
 * @Author: Claude
 * @Date: 2023/05/26 13:30
 * @Version: 1.0
 */
@Schema(description = "陪玩俱乐部社区系统 - 佣金流水")
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
public class CgmsCommissionFlow extends BaseTenantMode<Long, Long> {

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 订单ID
     */
    @Schema(description = "订单ID")
    private Long orderId;

    /**
     * 订单金额
     */
    @Schema(description = "订单金额")
    private BigDecimal orderAmount;

    /**
     * 佣金金额
     */
    @Schema(description = "佣金金额")
    private BigDecimal amount;
    
    /**
     * 佣金类型
     * @see com.ucode.model.cgms.enums.CgmsCommissionTypeEnum
     */
    @Schema(description = "佣金类型(1-陪玩订单佣金 2-陪玩订单返点佣金)")
    private Integer commissionType;

    /**
     * 返点金额
     */
    @Schema(description = "返点金额")
    private BigDecimal returnPointAmount;
    
    /**
     * 抽成金额
     */
    @Schema(description = "抽成金额")
    private BigDecimal commissionAmount;
    
    /**
     * 状态(0-待结算 1-已结算 2-已取消)
     * 参考 {@link com.ucode.model.cgms.enums.CgmsCommissionStatusEnum}
     */
    @Schema(description = "状态(0-待结算 1-已结算 2-已取消)")
    private Integer statuz;
    
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
} 